package com.domain.dao;

import com.domain.pojo.Contacts;
import com.google.common.collect.Maps;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ContactsMapper {
    int deleteByPrimaryKey(String id);

    int insert(Contacts record);

    int insertSelective(Contacts record);

    Contacts selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Contacts record);

    int updateByPrimaryKey(Contacts record);

    List<Contacts> selectByUserId(Map<String, Object> map);

    List<Contacts> selectByUsersIdAndType(@Param("userId") String userId);

    List<Map<String, Object>> selectFrindesId(@Param("userId") String userId);
}